from rest_framework import routers
from mytest.views import UserViewSet
from django.conf.urls import include,url

from mytest.test1_views import test1,django_test1,Test3V2,Test4,BookViewSet
from mytest.cache_test import cache_view
from mytest.file_test import test_file
from django.views.decorators.cache import cache_page
#list create
router = routers.DefaultRouter()
router.register(r'users', UserViewSet)
#http://127.0.0.1:8000/test5/1/
router.register(r'test5',BookViewSet)

urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'^test1/$',test1),
    url(r'django_test1',django_test1),
    url(r'^test3/$',Test3V2.as_view()),
    url(r'^test4/$',cache_view),
    url(r'^test6/$',test_file)

    #url(r'^test4/$',Test4.as_view()),
    # url(r'^test5/$',BookListV2ViewSet.as_view())
]